package com.glsc.ngateway.oaflow.utils;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class FixIncomeConfig {

    public static Map<String, String> accountoaToChineseMap = new HashMap<String, String>();

    static {
        accountoaToChineseMap.put("tiank", "田凯");
        accountoaToChineseMap.put("tianch", "田宸赫");
        accountoaToChineseMap.put("gaols", "高莉莎");
        accountoaToChineseMap.put("guobing", "郭冰");

        accountoaToChineseMap.put("oup", "欧鹏");
        accountoaToChineseMap.put("wangdc", "王德臣");
        accountoaToChineseMap.put("chenxx", "陈心心");

        accountoaToChineseMap.put("xingww","邢微微");
        accountoaToChineseMap.put("shirk","石睿柯");
        accountoaToChineseMap.put("zhaoyu","赵宇");
        accountoaToChineseMap.put("caosr","曹斯然");
        accountoaToChineseMap.put("lfei","刘菲");
        accountoaToChineseMap.put("lzh","李政辉");
        accountoaToChineseMap.put("yqwang","王蕴琪");
        accountoaToChineseMap.put("zhangxb","张晓斌");

    }


    public static Map<String, String> sysAccountMap = new HashMap<String, String>();

    static {
        sysAccountMap.put("交易主管", "gaols");
        sysAccountMap.put("销售主管", "guobing");
        sysAccountMap.put("部门经理", "gaols");

        sysAccountMap.put("资金部A角", "oup");
        sysAccountMap.put("资金部投资决策", "wangdc");
        sysAccountMap.put("资金拆借", "wangdc");
        sysAccountMap.put("资金部合规风控", "chenxx");


        sysAccountMap.put("利率债投资经理", "xingww");
        sysAccountMap.put("信用债投资经理", "shirk");
        sysAccountMap.put("转债投资经理1", "zhaoyu");
        sysAccountMap.put("票据投资经理", "caosr");
        sysAccountMap.put("投顾经理", "lfei");
        sysAccountMap.put("做市交易", "lzh");
        sysAccountMap.put("中台", "yqwang");
        sysAccountMap.put("类固收主管", "zhangxb");
    }


    public static Map<String, String> roleToAccontMap = new HashMap<String, String>();

    static {
        roleToAccontMap.put("交易主管", "gaolisha");
        roleToAccontMap.put("销售主管", "guobing");
        roleToAccontMap.put("部门经理", "gaolisha");

        roleToAccontMap.put("资金部A角", "oupeng");
        roleToAccontMap.put("资金部投资决策", "wangdechen");
        roleToAccontMap.put("资金拆借", "wangdechen");
        roleToAccontMap.put("资金部合规风控", "chenxinxin");

        roleToAccontMap.put("利率债投资经理", "xingweiwei");
        roleToAccontMap.put("信用债投资经理", "shiruike");
        roleToAccontMap.put("转债投资经理1", "zhaoyu");
        roleToAccontMap.put("票据投资经理", "caosiran");
        roleToAccontMap.put("投顾经理", "liufei");
        roleToAccontMap.put("做市交易", "lizhenghui");
        roleToAccontMap.put("中台", "wangyunqi");
        roleToAccontMap.put("类固收主管", "zhangxiaobin");
    }

    /**
     * 用于生成配置
     * @param args
     */
    public static void main(String[] args) {
        System.out.println(JSONObject.toJSONString(accountoaToChineseMap));
        System.out.println(JSONObject.toJSONString(sysAccountMap));
        System.out.println(JSONObject.toJSONString(roleToAccontMap));
        System.out.println(JSONObject.toJSONString(roleToAccontMap.values()).replace("\"",""));
//        List<String> list = new ArrayList<String>();

//        List<String> list = null;
//        Optional<List> opt = Optional.ofNullable(list);
//        System.out.println("----------------------------");
//        System.out.println(opt.isPresent());
//        System.out.println(opt.isEmpty());
//


    }
}

